//
//  MenuCellView.m
//  svqj
//
//  Created by xftt on 14-6-23.
//
//

#import "MenuCellView.h"

@implementation MenuCellView
{
    UILabel *_lb;
    UIImageView *_image;
    UIImageView *_icon;
}

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
    }
    [self setBackgroundColor:[UIColor clearColor]];
    _lb = [[UILabel alloc] initWithFrame:CGRectMake(50, 0, 130, 44)];
    [_lb setTextAlignment:NSTextAlignmentLeft];
    [_lb setTextColor:[UIColor lightTextColor]];
    [_lb setBackgroundColor:[UIColor clearColor]];
    [_lb setFont:[UIFont systemFontOfSize:15]];
    [self addSubview:_lb];
    _image= [[UIImageView alloc]initWithFrame:self.bounds];
    [_image setContentMode:UIViewContentModeCenter];
    [self addSubview:_image];
    _icon= [[UIImageView alloc]initWithFrame:CGRectMake(20, 13, 19, 16)];
    [self addSubview:_icon];
    return self;
}

- (void)setText:(NSString *)text
{
    [_lb setText:text];
}

- (void)setMenuIcon:(UIImage *)menuIcon
{
    [_icon setImage:menuIcon];
}

- (void)setMenuImage:(UIImage *)menuImage
{
    [_image setFrame:self.bounds];
    [_image setImage:menuImage];
}

@end
